package com.zzj.service;

import com.zzj.entity.ChatFriends;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzj.model.dto.chat.ChatFriendsCreateDTO;

/**
 * <p>
 * 好友表 服务类
 * </p>
 *
 * @author zzj
 * @since 2023-05-13
 */
public interface IChatFriendsService extends IService<ChatFriends> {
    //互相加好友
    boolean mutualCreateFriend(ChatFriendsCreateDTO in);

    boolean isFriend(String fromUsername,String toUsername);

    ChatFriends findChatFriend(String fromUsername,String toUsername );
}
